package org.xiaov.config.autoconfigure;

import io.jsonwebtoken.SignatureAlgorithm;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaovcloud
 * @since 2021/4/25 17:20
 */
@Component
@ConfigurationProperties(prefix = "spring.jwt")
@Getter
@Setter
public class JWTProperties {
    /**
     * 过期时间
     */
    private Long expireTime = 300L ;
    /**
     * 私钥
     */
    private String secretKey = "1234567890!@#$%^&*";
    /**
     * 算法
     */
    private SignatureAlgorithm signature = SignatureAlgorithm.HS256;

}
